import request from '@/utils/request'

// 查询调料列表
export function listCondiment(query) {
  return request({
    url: '/condiment/condiment/list',
    method: 'get',
    params: query
  })
}

// 查询调料详细
export function getCondiment(condimentId) {
  return request({
    url: '/condiment/condiment/' + condimentId,
    method: 'get'
  })
}

// 新增调料
export function addCondiment(data) {
  return request({
    url: '/condiment/condiment',
    method: 'post',
    data: data
  })
}

// 修改调料
export function updateCondiment(data) {
  return request({
    url: '/condiment/condiment',
    method: 'put',
    data: data
  })
}

// 删除调料
export function delCondiment(condimentId) {
  return request({
    url: '/condiment/condiment/' + condimentId,
    method: 'delete'
  })
}
